<template>
  <div class="nav">
    <ul>
      <router-link to="/find" tag="li" active-class="active">
        <i class="iconfont icon-icon-"></i>
        <p>发现</p>
      </router-link>
      <router-link to="/podcast" tag="li" active-class="active">
        <i class="iconfont icon-iconset0481"></i>
        <p>博客</p>
      </router-link>
      <router-link to="/own" tag="li" active-class="active">
        <i class="iconfont icon-yinlefuhao"></i>
        <p>我的</p>
      </router-link>
      <router-link to="/ktv" tag="li" active-class="active">
        <i class="iconfont icon-maikefeng2"></i>
        <p>K歌</p>
      </router-link>
      <router-link to="/cloud" tag="li" active-class="active">
        <i class="iconfont icon-wode1"></i>
        <p>云村</p>
      </router-link>
    </ul>
  </div>
</template>

<script>
import "@/assets/iconfont/iconfont.css";
import Vue from "vue";
import { Tabbar, TabbarItem } from "vant";
Vue.use(Tabbar);
Vue.use(TabbarItem);
export default {
  data() {
    return {};
  },
  created() {},
  mounted() {},
  methods: {},
};
</script>

<style scoped lang="scss">
.nav {
  width: 375px;
  z-index: 55;
  position: fixed;
  bottom: 0;
  left: 0;
  border-top: 1px solid #ccc;
  height: 49px;
  text-align: center;
  background: #fff;
  color: #7a7e83;
  width: 100%;
  // padding-top: 50px;
  ul {
    width: 375px;
    display: flex;
    align-items: center;
    li {
      margin-top: 5px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: space-around;
      flex: 1;
      height: 43px;
      &.active {
        color: #de132c;
        i {
          display: inline-block;
          width: 23px;
          height: 23px;
          // font-weight: bold;
          background-color: #de132c;
          color: white;
          font-size: 22px;
        }
      }
      p {
        margin: 0;
        padding: 0;
        margin-top: 2px;
        font-size: 13px;
      }
      i {
        display: inline-block;
        text-align: center;
        // line-height: 20px;
        width: 24px;
        height: 24px;
        font-size: 24px;
        border-radius: 50%;
      }
    }
  }
}
</style>

